.code-succ{
    position :relative;
}

function toogle_right(ele) {
        debugger
        if ($(ele).attr('is_right') == undefined || $(ele).attr('is_right') == null || $(ele).attr('is_right') == "false") {
            var width = $(ele).width() / 2;
            $(ele).addClass('code-succ');
            var style = '.code-succ:before {content: "";position: absolute;width: 22.5px;height: 7.5px;background: transparent;bottom: 10px;left: 5px;border: 2px solid red;border-top: none;border-right: none;-webkit-transform: rotate(-50deg);-ms-transform: rotate(-50deg);transform: rotate(-50deg);z-index: 9;}';

            $(ele).append('<style>' + style + '</style>');
            $(ele).attr('is_right', true);

            var group_name = $(ele).attr('group');
            var other = $('[group=' + group_name + ']');
            for (var i = other.length - 1; i >= 0; i--) {
                if (other[i] != ele) {
                    $(other[i]).removeClass('code-succ');
                    $(other[i]).children("style").remove();
                    $(other[i]).attr('is_right', false);
                }
            }
        } else {
            $(ele).removeClass('code-succ');
            $(ele).children("style").remove();
            $(ele).attr('is_right', false);
        }
    }